/**
 * Copyright Statement:
 * This software and related documentation (ESWIN SOFTWARE) are protected under relevant copyright laws.
 * The information contained herein is confidential and proprietary to
 * Beijing ESWIN Computing Technology Co., Ltd.(ESWIN)and/or its licensors.
 * Without the prior written permission of ESWIN and/or its licensors, any reproduction, modification,
 * use or disclosure Software, and information contained herein, in whole or in part, shall be strictly prohibited.
 *
 * Copyright ©[2023] [Beijing ESWIN Computing Technology Co., Ltd.]. All rights reserved.
 *
 * RECEIVER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES THAT THE SOFTWARE
 * AND ITS DOCUMENTATIONS (ESWIN SOFTWARE) RECEIVED FROM ESWIN AND / OR ITS REPRESENTATIVES
 * ARE PROVIDED TO RECEIVER ON AN "AS-IS" BASIS ONLY. ESWIN EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE OR NON INFRINGEMENT.
 * NEITHER DOES ESWIN PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE SOFTWARE OF ANY THIRD PARTY
 * WHICH MAY BE USED BY,INCORPORATED IN, OR SUPPLIED WITH THE ESWIN SOFTWARE,
 * AND RECEIVER AGREES TO LOOK ONLY TO SUCH THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO.
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
 * IN NO EVENT SHALL ESWIN BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 *
 * @file pin_config.c
 * @author abu (abu@eswincomputing.com)
 * @date 2025-07-22
 *
 */

#include "pin_config.h"

/**
 * @brief User configuration structure
 */
pin_settings_config_t g_stPinmuxConfigArr[NUM_OF_CONFIGURED_PINS] = {
	{
		//UART1_RX function, 100pin package, 20pin
		.base        = PORTA,
		.pinPortIdx  = 25U,
		.pullConfig  = PORT_INTERNAL_PULL_UP_ENABLED,
		.driveSelect = PORT_STR2_DRIVE_STRENGTH,
		.mux         = PORT_MUX_ALT3,
		.isGpio      = false,
	},
	{
		//UART1_TX function, 100pin package, 19pin
		.base        = PORTA,
		.pinPortIdx  = 26U,
		.pullConfig  = PORT_INTERNAL_PULL_NOT_ENABLED,
		.driveSelect = PORT_STR2_DRIVE_STRENGTH,
		.mux         = PORT_MUX_ALT3,
		.isGpio      = false,
	},
    {
        //PWM2 function, 100pin package, 52pin
        .base        = PORTB,
        .pinPortIdx  = 30U,
        .pullConfig  = PORT_INTERNAL_PULL_NOT_ENABLED,
        .driveSelect = PORT_STR1_DRIVE_STRENGTH,
        .mux         = PORT_MUX_ALT3,
        .isGpio      = false,
    },
    {
        //SUPERTMR2_QD_PHA function, 100pin package, 35pin
        .base        = PORTB,
        .pinPortIdx  = 7U,
        .pullConfig  = PORT_INTERNAL_PULL_NOT_ENABLED,
        .driveSelect = PORT_STR2_DRIVE_STRENGTH,
        .mux         = PORT_MUX_ALT3,
        .isGpio      = false,
    },
    {
        //SUPERTMR2_QD_PHB function, 100pin package, 36pin
        .base        = PORTB,
        .pinPortIdx  = 8U,
        .pullConfig  = PORT_INTERNAL_PULL_NOT_ENABLED,
        .driveSelect = PORT_STR2_DRIVE_STRENGTH,
        .mux         = PORT_MUX_ALT3,
        .isGpio      = false,
    },
    {
        //PORTB11 function, 100pin package, 41pin
        .base           = PORTB,
        .pinPortIdx     = 11U,
        .pullConfig     = PORT_INTERNAL_PULL_NOT_ENABLED,
        .driveSelect    = PORT_STR2_DRIVE_STRENGTH,
        .mux            = PORT_MUX_ALT1,
        .isGpio         = true,
        .direction      = GPIO_OUTPUT_DIRECTION,
        .initValue      = 0,
        .intConfig      = PORT_INT_DISABLED,
        .clearIntFlag   = true,
        .debounceEnable = false,
    },
    {
        //PORTB13 function, 100pin package, 43pin
        .base           = PORTB,
        .pinPortIdx     = 13U,
        .pullConfig     = PORT_INTERNAL_PULL_NOT_ENABLED,
        .driveSelect    = PORT_STR2_DRIVE_STRENGTH,
        .mux            = PORT_MUX_ALT1,
        .isGpio         = true,
        .direction      = GPIO_OUTPUT_DIRECTION,
        .initValue      = 0,
        .intConfig      = PORT_INT_DISABLED,
        .clearIntFlag   = true,
        .debounceEnable = false,
    },
    {
        //PORTB14 function, 100pin package, 44pin
        .base           = PORTB,
        .pinPortIdx     = 14U,
        .pullConfig     = PORT_INTERNAL_PULL_NOT_ENABLED,
        .driveSelect    = PORT_STR2_DRIVE_STRENGTH,
        .mux            = PORT_MUX_ALT1,
        .isGpio         = true,
        .direction      = GPIO_OUTPUT_DIRECTION,
        .initValue      = 0,
        .intConfig      = PORT_INT_DISABLED,
        .clearIntFlag   = true,
        .debounceEnable = false,
    },
	{
		//PORTB25 function, 100pin package, 49pin
		.base           = PORTB,
		.pinPortIdx     = 25U,
		.pullConfig     = PORT_INTERNAL_PULL_NOT_ENABLED,
		.driveSelect    = PORT_STR2_DRIVE_STRENGTH,
		.mux            = PORT_MUX_ALT1,
		.isGpio         = true,
		.direction      = GPIO_OUTPUT_DIRECTION,
		.initValue      = 0,
		.intConfig      = PORT_INT_DISABLED,
		.clearIntFlag   = true,
		.debounceEnable = false,
	},
	{
		//PORTB26 function, 100pin package, 50pin
		.base           = PORTB,
		.pinPortIdx     = 26U,
		.pullConfig     = PORT_INTERNAL_PULL_NOT_ENABLED,
		.driveSelect    = PORT_STR2_DRIVE_STRENGTH,
		.mux            = PORT_MUX_ALT1,
		.isGpio         = true,
		.direction      = GPIO_OUTPUT_DIRECTION,
		.initValue      = 0,
		.intConfig      = PORT_INT_DISABLED,
		.clearIntFlag   = true,
		.debounceEnable = false,
	},
    {
        //UART2_TX function, 100pin package, 19pin
        .base        = PORTA,
        .pinPortIdx  = 16U,
        .pullConfig  = PORT_INTERNAL_PULL_NOT_ENABLED,
        .driveSelect = PORT_STR2_DRIVE_STRENGTH,
        .mux         = PORT_MUX_ALT3,
        .isGpio      = false,
    },
    {
        //UART2_RX function, 100pin package, 20pin
        .base        = PORTA,
        .pinPortIdx  = 18U,
        .pullConfig  = PORT_INTERNAL_PULL_UP_ENABLED,
        .driveSelect = PORT_STR2_DRIVE_STRENGTH,
        .mux         = PORT_MUX_ALT3,
        .isGpio      = false,
    },
    {
        //PWM3 function, 100pin package, 82pin
        .base        = PORTD,
        .pinPortIdx  = 8U,
        .pullConfig  = PORT_INTERNAL_PULL_NOT_ENABLED,
        .driveSelect = PORT_STR1_DRIVE_STRENGTH,
        .mux         = PORT_MUX_ALT4,
        .isGpio      = false,
    },
	{
		//SUPERTMR1_QD_PHA function, 100pin package, 80pin
		.base        = PORTD,
		.pinPortIdx  = 6U,
		.pullConfig  = PORT_INTERNAL_PULL_NOT_ENABLED,
		.driveSelect = PORT_STR2_DRIVE_STRENGTH,
		.mux         = PORT_MUX_ALT6,
		.isGpio      = false,
	},
    {
        //SUPERTMR1_QD_PHB function, 100pin package, 81pin
        .base        = PORTD,
        .pinPortIdx  = 7U,
        .pullConfig  = PORT_INTERNAL_PULL_NOT_ENABLED,
        .driveSelect = PORT_STR2_DRIVE_STRENGTH,
        .mux         = PORT_MUX_ALT6,
        .isGpio      = false,
    },
	{
		//SPI1_SCK function, 100pin package, 66pin
		.base        = PORTC,
		.pinPortIdx  = 17U,
		.pullConfig  = PORT_INTERNAL_PULL_NOT_ENABLED,
		.driveSelect = PORT_STR2_DRIVE_STRENGTH,
		.mux         = PORT_MUX_ALT3,
		.isGpio      = false,
	},
	{
		//SPI1_SIN function, 100pin package, 65pin
		.base        = PORTC,
		.pinPortIdx  = 16U,
		.pullConfig  = PORT_INTERNAL_PULL_NOT_ENABLED,
		.driveSelect = PORT_STR2_DRIVE_STRENGTH,
		.mux         = PORT_MUX_ALT3,
		.isGpio      = false,
	},
	{
		//SPI1_SOUT function, 100pin package, 64pin
		.base        = PORTC,
		.pinPortIdx  = 15U,
		.pullConfig  = PORT_INTERNAL_PULL_NOT_ENABLED,
		.driveSelect = PORT_STR2_DRIVE_STRENGTH,
		.mux         = PORT_MUX_ALT3,
		.isGpio      = false,
	},
	{
		//SPI1_PCS0 function, 100pin package, 93pin
		.base        = PORTD,
		.pinPortIdx  = 24U,
		.pullConfig  = PORT_INTERNAL_PULL_NOT_ENABLED,
		.driveSelect = PORT_STR2_DRIVE_STRENGTH,
		.mux         = PORT_MUX_ALT5,
		.isGpio      = false,
	},
	{
		//PORTC19 function, 100pin package, 68pin
		.base           = PORTC,
		.pinPortIdx     = 19U,
		.pullConfig     = PORT_INTERNAL_PULL_NOT_ENABLED,
		.driveSelect    = PORT_STR2_DRIVE_STRENGTH,
		.mux            = PORT_MUX_ALT1,
		.isGpio         = true,
		.direction      = GPIO_OUTPUT_DIRECTION,
		.initValue      = 0,
		.intConfig      = PORT_INT_DISABLED,
		.clearIntFlag   = true,
		.debounceEnable = false,
	},
	{
		//PORTC21 function, 100pin package, 69pin
		.base           = PORTC,
		.pinPortIdx     = 21U,
		.pullConfig     = PORT_INTERNAL_PULL_NOT_ENABLED,
		.driveSelect    = PORT_STR2_DRIVE_STRENGTH,
		.mux            = PORT_MUX_ALT1,
		.isGpio         = true,
		.direction      = GPIO_OUTPUT_DIRECTION,
		.initValue      = 0,
		.intConfig      = PORT_INT_DISABLED,
		.clearIntFlag   = true,
		.debounceEnable = false,
	},
	{
		//PORTD2 function, 100pin package, 78pin
		.base           = PORTD,
		.pinPortIdx     = 2U,
		.pullConfig     = PORT_INTERNAL_PULL_NOT_ENABLED,
		.driveSelect    = PORT_STR2_DRIVE_STRENGTH,
		.mux            = PORT_MUX_ALT1,
		.isGpio         = true,
		.direction      = GPIO_OUTPUT_DIRECTION,
		.initValue      = 0,
		.intConfig      = PORT_INT_DISABLED,
		.clearIntFlag   = true,
		.debounceEnable = false,
	},
};
